<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
   <!-- 布局视口设置400px，理想视口是内定的，视觉视口因为缩放系数是1所以和理想视口相等 -->
   <!-- 好像width设置时小于理想视口时布局视口会设置为理想视口大小 -->
   <!-- test1：调整initial-scale以改变视觉视口，观察布局视口和视觉视口大小不一的情况下，页面渲染的变化 -->
  <!-- <meta name="viewport" content="width=500, initial-scale=0.3"> -->

  <!-- 默认情况：布局视口 === 视觉视口 === 理想视口 -->
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <!-- <meta name="viewport" content="width=500, initial-scale=0.4">  -->
  <!-- <meta name="viewport" content="width=900, initial-scale=1">  -->
  <!-- <meta name="viewport" content="width=400, initial-scale=3">  -->
  <!-- <meta name="viewport" content="width=device-width, initial-scale=3">  -->
  <title>Document</title>
  <style>
    body {
      margin: 0;
    }
    .container {
      /* vh & vw是相对于视觉视口计算大小 */
      /* width: 100vw;
      height: 100vh; */
      
      height: 500px;
      width: 100%;
      background-color: #cb5a5a;
    }
  </style>
</head>
<body>
  <div class="container">
    Lorem ipsum dolor, sit amet consectetur adipisicing elit. Incidunt perferendis necessitatibus aliquam corrupti ut modi officia, dolor a expedita vel sapiente debitis mollitia natus nesciunt voluptatem, voluptatum animi, omnis fugiat?
  </div>
  <div class="container">
    <img src="./动感小新.png" alt="xx">
  </div>
</body>
</html>